FROM ubuntu AS builder
ENV MY_SERVICE_PORT=80
ENV VERSION=1.1
LABEL multi.label1="value1" multi.label2="value2" other="value3"
ADD bin/amd64/httpserver /httpserver
EXPOSE 80
ENTRYPOINT /httpserver
##多阶段构建
FROM scratch
COPY --from=builder httpserver /httpserver
ENTRYPOINT ["/httpserver"]